package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.DepartmentInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 930588706
 * @date 18/2/3
 */
public interface DepartmentRepository extends JpaRepository<DepartmentInfo,Integer> {

    Page<DepartmentInfo> findByDepartmentNameLike(String departmentName, Pageable pageable);
    DepartmentInfo findByDepartmentName(String departmentName);
}
